package com.ll.stringdemo;

/**
 * @author 刘龙
 * @version 1.0
 */
public class StringExercise04 {
    public static void main(String[] args) {
        String s1 = "java";
        String s2 = "mysql";
        String s3 = "mysql";
        String s4 = new String("mysql");
        // false
        System.out.println(s2 == s4);
        // true
        System.out.println(s2 == s3);
        // true
        System.out.println(s2.equals(s4));
        // false
        System.out.println(s1 == s2);
    }
}
